* {
    margin: 0;
    padding: 0;
  
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #00d4ff;
}

.logo-image {
    /* Add your logo image styles here */
}

.menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 215, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(0, 120, 215, 0.2);
    border-left-color: #00d4ff;
    transform: translateX(8px);
}

.nav-item.active {
    color: #00d4ff;
    background: rgba(0, 120, 215, 0.3);
    border-left-color: #00d4ff;
}

/* Main Content Styles - FIXED */
.main-content {
    flex: 1;
    min-width: 0; /* Allow content to shrink properly */
    position: relative;
    overflow: hidden;
    /* REMOVED: margin-left and transition - these were causing the double spacing */
}

.content-header {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2500; /* Higher than sidebar */
    display: flex !important;
    background: rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Make it circular */
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* Arrow states for sidebar toggle */
.hamburger::before {
    content: "👻"; /* Right arrow when sidebar is hidden */
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* When sidebar is visible, show left arrow */
.hamburger.sidebar-visible::before {
    content: "🫣"; /* Left arrow when sidebar is visible */
}

/* Alternative: Eye icons (commented out - remove comments to use instead) */
/*
.hamburger::before {
    content: "👁️"; 
    font-size: 18px;
    transition: all 0.3s ease;
}

.hamburger.sidebar-visible::before {
    content: "👁️‍🗨️";
}
*/

.hamburger:hover {
    background: rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.page-title {
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
}

.content-area {
    padding: 30px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

/* Page Content Styles */
.page-content {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-content h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 300;
}

.page-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 120, 215, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 120, 215, 0.6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 120, 215, 0.8);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FIXED: Desktop sidebar toggle functionality */
@media (min-width: 769px) {
    /* When sidebar is hidden, make it take no space in flex layout */
    .sidebar.hidden {
        width: 0;
        min-width: 0;
        overflow: hidden;
        transform: translateX(-100%);
    }
    
    /* Remove the expanded class styles as they're not needed with proper flex layout */
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* FIXED: Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        /* Remove any margin on mobile */
    }
    
    .hamburger {
        display: flex;
        /* Keep button visible and accessible on mobile */
        bottom: 20px;
        left: 20px;
    }
}